const Service = require('egg').Service;

class UserService extends Service {
    async find(uid) {
        try {
            const user = await this.ctx.model.User.findAll({
                where: {
                    id: uid
                }
            });
            return user;
        } catch (e) {
           console.log(e, '1111111111111')
        }
    }
}

module.exports = UserService;
